package com.shuwen.gcdj.mapper.mysql.sysDictionary;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.sysDictionary.request.SysDictionaryChildReq;
import com.shuwen.gcdj.bean.sysDictionary.request.SysDictionaryReq;
import com.shuwen.gcdj.bean.sysDictionary.response.SysDictionaryResp;
import com.shuwen.gcdj.entity.SysDictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDictionaryMapper extends BaseMapper<SysDictionary> {
    IPage<SysDictionaryResp> getPage(Page<SysDictionary> page, @Param("bean") SysDictionaryReq req);

    IPage<SysDictionaryResp> getChildPage(Page<SysDictionaryResp> page, @Param("bean") SysDictionaryChildReq req);

    List<SysDictionaryResp> getList(@Param("bean") SysDictionaryReq req);

    SysDictionaryResp getSingle(@Param("bean") SysDictionaryReq req);

    List<SysDictionaryResp> getListParentCode(@Param("bean") SysDictionaryReq req);

    IPage<SysDictionaryResp> getListChild(Page<SysDictionary> page, @Param("bean") SysDictionaryReq req);

}
